def calc_ticket_discount(age, height):
    """计算车票优惠折扣系数"""
    if age <= 6 or height <= 1.2:
        return 0
    elif 6 < age < 14 or 1.2 < height < 1.5:
        return 0.5
    else:
        return 1

original_price = 100
real_price = original_price * calc_ticket_discount(7, 1.6)
print("实际票价：" + str(real_price) + "元")
